const {
  get,
  post,
  pureGet,
  upload
} = require("./../utils/http");
const {
  contactUrlParams
} = require("./../utils/util");
// 微信授权登录
const scanAuth = param => {
  const query = contactUrlParams(param)
  return get(`api/user/scanAuth${query}`);
}
// 微信授权测评结果
const scanAuthReview = id => {
  return post(`api/user/review/import/${id}`);
}
//授权登录
const scanPlannerLogin = param => {
  const query = contactUrlParams(param)
  return get(`api/planner/scanAuth${query}`);
}
module.exports = {
  scanAuth,
  scanAuthReview,
  scanPlannerLogin
}